home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / src / dd / dmakefile < prev    next >
Makefile  |  1994-02-11  |  1KB  |  63 lines

  1. PRE=    t:ddefs.m
  2.  
  3. CCFLG=    -mRR -proto -H$(PRE)=defs.h -2.0 -d1 -s
  4. #CCFLG=    -proto -R -H$(PRE)=defs.h -2.0 -d1 -s
  5.  
  6. OD=
  7. #XLIBS = -l dlib:place.o lib:debug.lib
  8. XLIBS =
  9. #-l lib:debug.lib
  10.  
  11. DBUG=    dd
  12.  
  13. DBUGC=    umain.c lists.c dbug.c cexp.c commands.c loadseg.c\
  14.     breakpoints.c hex.c mixed.c dism.c registers.c watchpoints.c \
  15.     menu.c rexxfunc.c
  16.  
  17. DBUGCO= $(DBUGC:*.c:"$(OD)%1.o")
  18.  
  19. DBUGA=    dbuglib.asm dasm.asm
  20.  
  21. DBUGAO= $(DBUGA:*.asm:"$(OD)%1.o")
  22.  
  23. HELLOC= hello.c hello2.c
  24.  
  25. HELLOCO= $(HELLOC:*.c:%1.o)
  26.  
  27. all:    $(OD) dbug_protos.h $(DBUG) hello
  28.  
  29. $(PRE): defs.h localdefs.h
  30.  
  31. dbug_protos.h:    $(DBUGC) console.c
  32.     makeproto -o dbug_protos.h $(DBUGC) console.c
  33.  
  34. $(DBUG):    $(DBUGCO) $(DBUGAO) console.o
  35.     dcc $(CCFLG) $(DBUGCO) console.o $(DBUGAO) -o $(DBUG) $(XLIBS)
  36.  
  37. hello:    $(HELLOCO)
  38.     dcc -R -d1 $(CCFLG) $(HELLOCO) -o hello
  39.  
  40. console.o:    console.c dd_rev.h
  41.     dcc -c $(CCFLG) %(right) -o %(left)
  42.  
  43. $(DBUGCO):    $(DBUGC)
  44.     dcc -c $(CCFLG) %(right) -o %(left)
  45.  
  46. $(DBUGAO):    $(DBUGA)
  47.     a68k -iV:include/ -o%(left) %(right)
  48.  
  49. $(HELLOCO):    $(HELLOC)
  50.     dcc -c -R -d1 $(CCFLG) %(right) -o %(left)
  51.  
  52. #$(OD) : $(OD)
  53. #    makedir %(left:*/:*)
  54.  
  55. clean:
  56.     -delete $(OD)#?.o
  57.     -delete $(PRE)
  58.  
  59. cleanheader:
  60.     -delete $(PRE)
  61.  
  62. version:
  63.     -bumprev 1 dd_rev